<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateRiskRulesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('risk_rules', function (Blueprint $table) {
            $table->bigIncrements('id');

            $table->integer('dengji')->default(0)->comment('等级');
            $table->string('gzmc',100)->default('')->comment('规则名称');
            $table->string('money')->default('')->comment('金额限制');
            $table->string('age')->default('')->comment('年龄限制');
            $table->string('courtdetail')->default('')->comment('信息验证规则-法院信息详情个人高级版');
            $table->string('c3')->default('')->comment('3C申请意向-3C租赁');
            $table->string('zxf')->default('')->comment('租信分');
            $table->string('zzf')->default('')->comment('租智分');
            $table->string('thqzdj')->default('')->comment('团火欺诈等级');
            $table->string('jdyxyz')->default('')->comment('借贷意向验证');
            $table->string('fxsb')->default('')->comment('风险哨兵');
            $table->string('tsmdyz')->default('')->comment('反欺诈规则-特殊名单验证');
            $table->string('fybzxr')->default('')->comment('反欺诈规则-法院被执行人限高版');



            $table->string('name')->default('')->comment('名称');
            $table->integer('sort')->default(10000)->comment('排序');
            $table->string('z_name')->default('')->comment('智能名称');
            $table->string('ady')->default('')->comment('自定义');

            $table->text('ultimately')->nullable()->comment('最终综合条件');




            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('risk_rules');
    }
}
